package cn.com.recode.重构方法.提炼函数;

public class A2 {

    private String name;

    private int amout;

    void printOwing() {
        printBanner();

        //print details
        printDetails();
    }

    private void printDetails() {
        System.out.println("name:"+name);
        System.out.println("amout:"+amout);
    }

    private void printBanner() {
        System.out.println("printBanner");
    }
}
